<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <table class="styled" cellspacing="0">
        <tr>
            <th class="styled">Person</th>
            <th class="styled">User</th>
            <th class="styled">Login</th>
            <th class="styled">Logout</th>
            <th class="styled">Status</th>
            <th class="styled">Remote Host</th>
        </tr>
        <logic:iterate name="loginValues" id="login">
            <tr>
                <td class="styled">
                    <html:link action="showNode.do" paramId="nodeId" paramName="login" paramProperty="userValue.personValue.contactableValue.nodeValue.nodeId">
                        <beans:write name="login" property="userValue.personValue.contactableValue.nodeValue.name"/>
                    </html:link>
                </td>
                <td class="styled">
                    <html:link action="showNode.do" paramId="nodeId" paramName="login" paramProperty="userValue.nodeValue.nodeId">
                        <beans:write name="login" property="userValue.userName"/>
                    </html:link>
                </td>
                <td class="styled">
                    <beans:write name="login" property="loginTime" format="yyyy-MM-dd HH:mm:ss"/>&nbsp;
                </td>
                <td class="styled">
                    <logic:present name="login" property="logoutTime">
                        <beans:write name="login" property="logoutTime" format="yyyy-MM-dd HH:mm:ss"/>&nbsp;
                    </logic:present>
                    <logic:notPresent name="login" property="logoutTime">
                        online
                    </logic:notPresent>
                </td>
                <td class="styled">
                    <beans:write name="login" property="loginStatusValue.name"/>
                </td>
                <td class="styled">
                    <beans:write name="login" property="remoteHost"/>&nbsp;
                </td>
            </tr>
        </logic:iterate>
    </table>
</div>
